import React from 'react'
import route from './config/route'

import { Route } from 'react-router-dom'

export default function App() {
    return (
        <div className="wrap">
            {route.map((item) => {
                return <Route key={item.path} path={item.path} component={item.component} exact={item.exact}></Route>
            })}
        </div>
    )
}
